<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 表单元素 -->
        <input type="text" v-model="msg">
        <textarea v-model="msg2" cols="30" rows="10"></textarea>
        <!-- 不可以用，因为div不是表单元素 -->
        <!-- <div v-model="msg"></div> -->

        <!-- 下拉框获取的其实是value值 -->
        <select v-model="hobby">
            <option value="sing">唱</option>
            <option value="jump">跳</option>
            <option value="rap">rap</option>
            <option value="code">打代码</option>
        </select>

        <p> {{ msg }}</p>
    </div>

    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                msg: '抠你鸡蛙',
                msg2: '大段文本',
                hobby: 'code'
            }
        })
    </script>
</body>
</html>